import request from '@/utils/request'

// 查询停车场信息列表
export function listLot(query) {
    return request({
        url: '/part/lot/list',
        method: 'get',
        params: query
    })
}

// 查询停车场信息详细
export function getLot(partLotId) {
    return request({
        url: '/part/lot/' + partLotId,
        method: 'get'
    })
}

// 新增停车场信息
export function addLot(data) {
    return request({
        url: '/part/lot',
        method: 'post',
        data: data
    })
}

// 修改停车场信息
export function updateLot(data) {
    return request({
        url: '/part/lot',
        method: 'put',
        data: data
    })
}

// 删除停车场信息
export function delLot(partLotId) {
    return request({
        url: '/part/lot/' + partLotId,
        method: 'delete'
    })
}
